package vistasSucursal;
import java.awt.HeadlessException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JSeparator;
import javax.swing.JTextField;

import controlador.ControladorSuc;
import dto.MesaSimpleDTO;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class FuncionalidadMesa extends javax.swing.JFrame {
	private JButton buscarMesas;
	private JLabel mesas;
	private JComboBox jComboBox1;
	private JButton cerrarMesa;
	private JButton adicionarItemComanda;
	private JButton generarComanda;
	private JLabel jLabel1;
	private JTextField mozo;

	
	
	public FuncionalidadMesa() {
		super();
		initGUI();
		// TODO Auto-generated constructor stub
	}

	private void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
				{
					buscarMesas = new JButton();
					getContentPane().add(buscarMesas);
					buscarMesas.setText("Buscar Mesas");
					buscarMesas.setBounds(346, 46, 126, 23);
				}
				{
					mozo = new JTextField();
					getContentPane().add(mozo);
					mozo.setBounds(158, 46, 93, 23);
				}
				{
					jLabel1 = new JLabel();
					getContentPane().add(jLabel1);
					jLabel1.setText("Id Mozo");
					jLabel1.setBounds(32, 49, 102, 16);
				}
				{
					mesas = new JLabel();
					getContentPane().add(mesas);
					mesas.setText("Mesas");
					mesas.setBounds(32, 88, 68, 16);
				}
				{
					ComboBoxModel jComboBox1Model = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
					jComboBox1 = new JComboBox();
					getContentPane().add(jComboBox1);
					jComboBox1.setModel(jComboBox1Model);
					jComboBox1.setBounds(158, 85, 93, 23);
				}
				{
					cerrarMesa = new JButton();
					getContentPane().add(cerrarMesa);
					cerrarMesa.setText("Cerrar Mesa");
					cerrarMesa.setBounds(35, 193, 123, 23);
				}
				{
					generarComanda = new JButton();
					getContentPane().add(generarComanda);
					generarComanda.setText("Generar Comanda");
					generarComanda.setBounds(177, 193, 138, 23);
					generarComanda.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							FuncionalidadComanda fc=new FuncionalidadComanda();
							fc.setTextMesa(jComboBox1.getSelectedItem());
							fc.setVisible(true);
						}
					}
					);
				}
				{
					adicionarItemComanda = new JButton();
					getContentPane().add(adicionarItemComanda);
					adicionarItemComanda.setText("Adicionar Item a Comanda");
					adicionarItemComanda.setBounds(332, 193, 198, 23);
				}
			}
			{
				this.setSize(581, 277);
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}

}
